<layout name="Layout/layout" />

<div style="margin-bottom: 10px;">
    <a href="{:U('Admin/Role/add',array())}"><button class="btn btn-primary">添加角色</button></a>
</div>
<table id="simple-table" class="table table-striped table-bordered table-hover">
    <thead>
    <tr>
        <th class="center">序号</th>
        <th class="center">权限名称</th>


        <th class="center">操作</th>
    </tr>
    </thead>

    <tbody>
    <volist name="data" id="m">
    <tr>
        <td class="center">{$m.role_name}</td>
        <td class="center">{$m.pri_name}</td>

        <td class="center">
            <div class=" btn-group">
                <a href="{:U('Admin/Privilege/edit',array('id'=>$m['id']))}">
                <button class="btn btn-xs btn-info">
                    <i class="ace-icon fa fa-pencil bigger-120"></i>
                </button>
                </a>
                <a href="{:U('Admin/Privilege/delete',array('id'=>$m['id'],'pid'=>$m['parent_id'],'level'=>$m['level']))}">
                <button class="btn btn-xs btn-danger">
                    <i class="ace-icon fa fa-trash-o bigger-120"></i>
                </button>
                </a>
            </div>

        </td>
    </tr>
    </volist>
    </tbody>
</table>